<template>
	<!-- begin -搜索区 -->
	<view class="search-link" @click="toSearch">
		<view class="inner">
			<icon type="search" size="16" color="#bbb"></icon>
			<text>搜索</text>
		</view>
	</view>
	<!-- end -搜索区 -->
</template>

<script>
	export default{
		data() {
			return {
				
			}
		},
		methods:{
			// 跳转至搜索页
			toSearch(){
				uni.navigateTo({
					url:'/pages/search/search'
				})
			}
		}	
	}
</script>

<style scoped lang="less">
	.search-link {
		padding: 20rpx 16rpx;
		background-color: #eb4450;

		.inner {
			height: 60rpx;
			background-color: #fff;
			border-radius: 8rpx;
			display: flex;
			align-items: center;
			justify-content: center;

			text {
				color: #bbb;
				margin-left: 16rpx;
			}

			icon {
				margin-top: 6rpx;
			}
		}
	}
</style>
